Optimal. Leaf size=45 \[ \frac{\left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )^2}{2 B n (b c-a d)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.082411, antiderivative size = 45, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 38, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.026, Rules used = {6686} \[ \frac{\left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )^2}{2 B n (b c-a d)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6686
Rubi steps
\begin{align*} \int \frac{A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (c+d x)} \, dx &=\frac{\left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )^2}{2 B (b c-a d) n}\\ \end{align*}
Mathematica [A] time = 0.0121338, size = 43, normalized size = 0.96 \[ \frac{\left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )^2}{2 (b B c n-a B d n)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.615, size = 1152, normalized size = 25.6 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.26903, size = 204, normalized size = 4.53 \begin{align*} B{\left (\frac{\log \left (b x + a\right )}{b c - a d} - \frac{\log \left (d x + c\right )}{b c - a d}\right )} \log \left (\frac{{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right ) + A{\left (\frac{\log \left (b x + a\right )}{b c - a d} - \frac{\log \left (d x + c\right )}{b c - a d}\right )} - \frac{{\left (e n \log \left (b x + a\right )^{2} - 2 \, e n \log \left (b x + a\right ) \log \left (d x + c\right ) + e n \log \left (d x + c\right )^{2}\right )} B}{2 \,{\left (b c - a d\right )} e} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.471431, size = 192, normalized size = 4.27 \begin{align*} \frac{B n \log \left (b x + a\right )^{2} + B n \log \left (d x + c\right )^{2} + 2 \,{\left (B \log \left (e\right ) + A\right )} \log \left (b x + a\right ) - 2 \,{\left (B n \log \left (b x + a\right ) + B \log \left (e\right ) + A\right )} \log \left (d x + c\right )}{2 \,{\left (b c - a d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{B \log \left (\frac{{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right ) + A}{{\left (b x + a\right )}{\left (d x + c\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]